package com.zzxy.mybatis12.dao;

import com.zzxy.mybatis12.entity.User;
import org.apache.ibatis.session.SqlSession;

public class UserDaoImpl {

    SqlSession sqlSession;
    public UserDaoImpl(SqlSession sqlSession){
        this.sqlSession = sqlSession;
    }
    public User findUserByDao(int id){
        User user = sqlSession.selectOne("findUserById",id);
        return user;
    }
}
